﻿@{    var user = (XichLoGreen.Models.UserModel)Session["Account"];    }

@if (user != null)
{
    <div class="usr-panel">
        <ul id="usr-panel">
            <li><a href="#">@user.Name</a></li>
            <li>@Html.ActionLink("Logout", "Logout")</li>
        </ul>

    </div>
      
}
else
{
    <div class="usr-panel">
        <ul id="usr-panel">
            <li><a href="#" onclick="login()">Login</a></li>
        </ul>

    </div> 
}
